import request from '@/router/axios'

export function fetchList(query) {
  return request({
    url: '/entrance-guard/guardDeviceRecord/page',
    method: 'get',
    params: query
  })
}
export function putObj(id) {
  return request({
    url: '/entrance-guard/guardDeviceRecord/edit/' + id,
    method: 'get',
  })
}
export function addObj(obj) {
  return request({
    url: '/entrance-guard/guardDeviceRecord/',
    method: 'post',
    data: obj
  })
}
export function delObj(id) {
  return request({
    url: '/entrance-guard/guardDeviceRecord/' + id,
    method: 'delete'
  })
}